package com.logic.landseaserver.ws.request;

import java.util.Date;

import com.logic.landseaserver.domain.PropertyDecision;

public class PropertyDecisionReq {

    private Integer id;
    private Integer propertyId;

    private String summaryName;

    private Integer summaryId;

    private Integer summaryVersion;

    private String decisionResult;

    private Date decisionDate;

    private String businessCondition;

    public Integer getPropertyId() {
        return propertyId;
    }

    public void setPropertyId(Integer propertyId) {
        this.propertyId = propertyId;
    }

    public String getSummaryName() {
        return summaryName;
    }

    public void setSummaryName(String summaryName) {
        this.summaryName = summaryName;
    }

    public Integer getSummaryId() {
        return summaryId;
    }

    public void setSummaryId(Integer summaryId) {
        this.summaryId = summaryId;
    }

    public Integer getSummaryVersion() {
        return summaryVersion;
    }

    public void setSummaryVersion(Integer summaryVersion) {
        this.summaryVersion = summaryVersion;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDecisionResult() {
        return decisionResult;
    }

    public void setDecisionResult(String decisionResult) {
        this.decisionResult = decisionResult;
    }

    public Date getDecisionDate() {
        return decisionDate;
    }

    public void setDecisionDate(Date decisionDate) {
        this.decisionDate = decisionDate;
    }

    public String getBusinessCondition() {
        return businessCondition;
    }

    public void setBusinessCondition(String businessCondition) {
        this.businessCondition = businessCondition;
    }

    public static PropertyDecision convertFromDTO(PropertyDecisionReq req) {
        PropertyDecision propertyDecision = new PropertyDecision();
        propertyDecision.setId(req.getId());
        propertyDecision.setSummaryId(req.getSummaryId());
        propertyDecision.setBusinessCondition(req.getBusinessCondition());
        propertyDecision.setSummaryName(req.getSummaryName());
        propertyDecision.setDecisionResult(req.getDecisionResult());
        propertyDecision.setDecisionDate(req.getDecisionDate());
        propertyDecision.setPropertyId(req.getPropertyId());
        return propertyDecision;
    }

}
